from flask import  Flask,render_template,redirect

app = Flask(__name__)
app.debug = True
import functools

def wapper(func):
    # @functools.wraps(func)
    def inner(*args,**kwargs):
        print("before")
        return func(*args,**kwargs)
    return inner


@wapper
@app.route('/index',methods=['GET','POST'])
def index():
    return "Index"

if __name__=="__main__":
    app.run()